/**
 * 菜单树
 */

import {
  externalIcon,
  internalIcon,
  preservationIcon,
  settingIcon,
} from '@/components/IconOnlineUrl';

const menuTitleList = [
  {
    name: 'module.norm.enabled',
    children: [
      {
        name: 'welcome',
        path: '/welcome',
      },
      {
        name: 'ui-norm.external',
        path: '/external',
        icon: externalIcon,
        children: [
          {
            name: 'ui-norm.bookexternal',
            path: '/external/bookexternal',
            children: [
              {
                name: 'ui-norm.addexternal',
                path: '/external/bookexternal/addexternal',
              },
            ],
          },
        ],
      },
      {
        name: 'ui-norm.internal',
        path: '/internal',
        icon: internalIcon,
        children: [
          {
            name: 'ui-norm.packageconfirm',
            path: '/internal/packageconfirm',
          },
        ],
      },
      {
        name: 'ui-norm.preservation',
        path: '/preservation',
        icon: preservationIcon,
        children: [
          {
            name: 'ui-norm.libraryreception',
            path: '/preservation/libraryreception',
          },
        ],
      },
      {
        name: 'settings.norm.enabled',
        path: '/settings',
        icon: settingIcon,
        children: [
          {
            name: 'settings.dictionary.enabled',
            path: '/settings/dictionary',
          },
        ],
      },
    ],
  },
];

export default menuTitleList
